package yz.cp.back.auth.sign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

@Service
public class AccessAccountImpl implements AccessAccount {
    @Autowired
    private StringRedisTemplate redisTemplate;
    @Override
    public String getAppSecret(String appId) {
//        String appSecret=redisTemplate.opsForValue().get("temp:token:"+appId);
//        if(appSecret==null){
//            throw new ApiException("临时密钥缺失");
//        }
//        return appSecret;
        return "123456";
    }
}
